home *** CD-ROM | disk | FTP | other *** search
- Path: detroit.freenet.org!ab411
- From: ab411@detroit.freenet.org (David R. Conrad)
- Newsgroups: comp.lang.c
- Subject: Re: getopt()
- Date: 29 Mar 1996 15:42:53 GMT
- Organization: Greater Detroit Free-Net, Detroit, MI
- Message-ID: <4jh0dt$ors@detroit.freenet.org>
- References: <3151FEF2.167E@mashie.ece.jhu.edu>
- Reply-To: ab411@detroit.freenet.org (David R. Conrad)
- NNTP-Posting-Host: detroit.freenet.org
-
-
- In a previous article, chenyang@mashie.ece.jhu.edu (Chenyang Xu) says:
- > What is the role of colon in the string of getopt()? For example,
- >
- >while ((c = getopt(argc, argv, "f:o:cdDS")) != EOF)
-
- It indicates the preceeding option letter takes an argument. For
- instance, the program containing that line might be invoked with
- the following arguments:
-
- -ffoobar -o baz -d -cS
-
- --
- David R. Conrad, conrad@detroit.freenet.org : PGP key on : GDFN Hardware and
- http://www.freenet.org/staff/conrad/ : home page : Software Committee
- Union of Computer Hackers, : Is a tune greater than the hum of its parts?
- Local 2^859433-1 APL-CPIO : Is Twain more than the Sam of his parts?
-